package com.thwj.project.biz.domain;

    import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thwj.common.annotation.Excel;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

;

/**
 * 用户提现对象 biz_user_account_withdraw
 *
 * @author generate
 * @date 2023-06-16
 */

@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("biz_user_account_withdraw")
public class UserAccountWithdraw extends Model<UserAccountWithdraw>{
private static final long serialVersionUID=1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户id */
            @Excel(name = "用户id")
    private Long userId;

    /** 提现金额 */
            @Excel(name = "提现金额")
    private BigDecimal amount;
    /** 提现金额 */
    @Excel(name = "手续费")
    private BigDecimal commission;
    /** 提现金额 */
    @Excel(name = "到账金额")
    private BigDecimal actualAmount;

    /** 状态（1：提现审核中  2：处理成功 3：处理失败） */
            @Excel(name = "状态", readConverterExp = "1=：提现审核中,2=：处理成功,3=：处理失败")
    private Integer status;

    /***
     * 备注
     */
    private String remark;

    /** 收支记录id */
            @Excel(name = "收支记录id")
    private Long inOutId;

    /** appid */
            @Excel(name = "appid")
    private String appId;

    /** partner_id服务商id */
            @Excel(name = "partner_id服务商id")
    private String partnerId;

    /** openid */
            @Excel(name = "openid")
    private String openid;

    /** 返回内容 */
            @Excel(name = "返回内容")
    private String responseResult;

    /** 异常信息 */
            @Excel(name = "异常信息")
    private String exceptionInfo;

    /** 请求信息 */
            @Excel(name = "请求信息")
    private String requestInfo;

    /** 创建时间 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新时间 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;




    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
